<?php
if(!defined("GUARD"))
{
    die("No direct script access allowed!");
}

include("/connector.class.php");
/**
 * Description of authclass
 *
 * @author Nick
 */
Class Sigma_Auth
{
    public function is_admin($userid)
    {
        $this->c->query(sprintf("Select * from users where id = %d LIMIT 1",$userid));
        $this->c->exec();
        if($this->c->rows['admin'] == 1)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
    public function is_member($userid)
    {

    }


}
?>
